<?php
	include('./includes/constantes.php');
	include('./includes/config.php');
	include($includes_dir.'mysql.php');
	include($includes_dir.'functions.php');
	$Title="Icon Test";
	include($includes_dir.'headers.php');
	include($includes_dir.'spell.inc.php');
	$sql = "select icon from items group by icon order by icon";
	$result = mysql_query($sql); #if (!$result) {die('Invalid query: ' . mysql_error());}
	while($row = mysql_fetch_array($result)){
		if(file_exists(getcwd() . "/icons/item_" . $row["icon"] . ".gif"))
		{ 
			echo "<img src='" . $icons_url . "item_" . $row["icon"] . ".gif'/> ";
		}
	}
		
	include($includes_dir."footers.php");
?>